qui(function (require, exports, module) {

    Record.Config = $.extend({}, {}, {
        TABLE_COLMODEL_CONFIG: {
            id: {
                name: "id",
                index: 'id',
                title: false,
                width: 80,
                align: "left",
                sortable: false
            },
            planId: {
                name: "planId",
                index: 'planId',
                title: false,
                width: 100,
                align: "left",
                sortable: false
            },
            colName: {
                name: "colName",
                index: 'colName',
                title: false,
                width: 120,
                align: "left",
                sortable: false
            },
            channelName: {
                name: "channelName",
                index: 'channelName',
                title: false,
                width: 120,
                align: "left",
                sortable: false
            },
            category: {
                name: "categoryId",
                index: 'categoryId',
                title: false,
                width: 100,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.category(v, o, r);
                }
            },
            hasAuth: {
                name: "hasAuth",
                index: 'hasAuth',
                title: false,
                width: 80,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.hasAuth(v, o, r);
                }
            },

            planType: {
                name: "planType",
                index: 'planType',
                title: false,
                width: 100,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.planType(v, o, r);
                }
            },
            planRule: {
                title: false,
                width: 250,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.planRule(v, o, r);
                }
            },
            enable: {
                name: "enable",
                index: 'enable',
                title: false,
                width: 80,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.enable(v, o, r);
                }
            },
            opUser: {
                name: "opUser",
                index: 'opUser',
                title: false,
                width: 180,
                align: "left",
                sortable: false
            },
            addTime: {
                name: "createTime",
                index: 'createTime',
                title: false,
                width: 150,
                align: "left",
                sortable: false
            },
            operator_plan_list: {
                title: false,
                width: 100,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.operator_plan_list(v, o, r);
                }
            },
            operator_task_list: {
                title: false,
                width: 100,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.operator_task_list(v, o, r);
                }
            },
            taskStatus: {
                name: "taskStatus",
                index: 'taskStatus',
                title: false,
                width: 100,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.taskStatus(v, o, r);
                }
            },
            elementName: {
                title: false,
                width: 200,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.elementName(v, o, r);
                }
            },
            task_range_time:{
                title: false,
                width: 150,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.task_range_time(v, o, r);
                }
            },
            channelName:{
                name: "channelName",
                index: 'channelName',
                title: false,
                width: 150,
                align: "left",
                sortable: false
            },
            channelCode:{
                name: "channelCode",
                index: 'channelCode',
                title: false,
                width: 150,
                align: "left",
                sortable: false
            },
            createTime: {
                name: "createTime",
                index: 'createTime',
                title: false,
                width: 200,
                align: "left",
                sortable: false
            },
            operator_channel_list: {
                title: false,
                width: 500,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.operator_channel_list(v, o, r);
                }
            },
            hasCaption: {
                name: "hasCaption",
                index: 'hasCaption',
                title: false,
                width: 100,
                align: "left",
                sortable: false,
                formatter: function(v, o, r) {
                    return Record.Util.formatter.hasCaption(v, r);
                }
            },
            videoName:{
                name: "videoName",
                index: 'videoName',
                title: false,
                width: 150,
                align: "left",
                sortable: false
            },
            recordTime:{
                name: "recordTime",
                index: 'recordTime',
                title: false,
                width: 150,
                align: "left",
                sortable: false
            },
            videoStatus:{
                name: "videoStatus",
                index: 'videoStatus',
                title: false,
                width: 100,
                align: "left",
                sortable: false,
                formatter: function(v, o, r) {
                    return Record.Util.formatter.videoStatus(v, r);
                }
            },
            recordVideoId: {
                name: "recordVideoId",
                index: 'recordVideoId',
                title: false,
                width: 100,
                align: "left",
                hidden: true
            },
            videoId: {
                name: "videoId",
                index: 'videoId',
                title: false,
                width: 100,
                align: "left",
                sortable: false,
            },
            taskId: {
                name: "taskId",
                index: 'taskId',
                title: false,
                width: 100,
                align: "left",
                hidden: true
            },
            serverIp: {
                name: "serverIp",
                index: 'serverIp',
                title: false,
                width: 100,
                align: "left",
                hidden: true
            },

            operator_channelSignalTable_list:{
                title: false,
                width: 100,
                align: "left",
                sortable: false,
                formatter: function (v, o, r) {
                    return Record.Util.formatter.operator_channelSignalTable_list(v, o, r);
                }
            }
        },
        PLAN_DATA_LIST: {
            url: Record.urlConfig.getPlanLibraryListUrl,
            loadBeforeSend: function (xhr, settings) {
                var auth = Ancestor.Util.getAuth("/record/plan/libraryList");
                xhr.setRequestHeader('Sign', auth.sign);
                xhr.setRequestHeader("Time", auth.clientTime);
                xhr.setRequestHeader("From", auth.from);
                return true;
            },
            multiselect: false,
            loadtext: '加载中...',
            loadui: 'block',
            rowNum: 20,
            mtype: "post",
            datatype: "local",
            prmNames: {
                page: "pageNo",
                rows: "pageSize"
            },
            colNames: ["计划ID", "栏目名称", "频道", "素材分类", "有无版权", "执行方式", "执行规则", "开启状态", "创建人", "创建时间", "操作"],
            colModel: ['id', "colName" , "channelName", "category", "hasAuth", "planType", "planRule" , "enable" , "opUser", "addTime", "operator_plan_list"],
            pager: "#pager"
        },


        TASK_DATA_LIST: {
            url: Record.urlConfig.getTaskLibraryListUrl,
            loadBeforeSend: function (xhr, settings) {
                var auth = Ancestor.Util.getAuth("/record/task/libraryList");
                xhr.setRequestHeader('Sign', auth.sign);
                xhr.setRequestHeader("Time", auth.clientTime);
                xhr.setRequestHeader("From", auth.from);
                return true;
            },
            multiselect: false,
            loadtext: '加载中...',
            loadui: 'block',
            rowNum: 20,
            mtype: "post",
            datatype: "local",
            prmNames: {
                page: "pageNo",
                rows: "pageSize"
            },
            colNames: ["任务ID", "计划ID", "栏目名称", "素材名称","频道", "素材分类", "有无版权", "状态", "任务起止时间", "操作"],
            colModel: ['id', "planId", "colName", "elementName","channelName", "category", "hasAuth", "taskStatus", "task_range_time", "operator_task_list"],
            pager: "#pager"
        },

        CHANNEL_DATA_LIST: {
            url: Record.urlConfig.getRecordChannelUrl,
            loadBeforeSend: function (xhr, settings) {
                var auth = Ancestor.Util.getAuth("/record/channel/list");
                xhr.setRequestHeader('Sign', auth.sign);
                xhr.setRequestHeader("Time", auth.clientTime);
                xhr.setRequestHeader("From", auth.from);
                return true;
            },
            multiselect: false,
            loadtext: '加载中...',
            loadui: 'block',
            rowNum: 20,
            mtype: "post",
            datatype: "local",
            prmNames: {
                page: "pageNo",
                rows: "pageSize"
            },
            colNames: ["频道ID", "频道名称", "频道代码","是否有台标", "创建人", "创建时间", "操作"],
            colModel: ['id', "channelName", "channelCode", "hasCaption", "opUser", "createTime", "operator_channel_list"],
            pager: "#pager"
        },

        CHANNELSIGNALTABLE_DATA_LIST: {
            url: Record.urlConfig.doChannelSignalTableUrl,
            loadBeforeSend: function (xhr, settings) {
                var auth = Ancestor.Util.getAuth("/record/channelSignal/tableList");
                xhr.setRequestHeader('Sign', auth.sign);
                xhr.setRequestHeader("Time", auth.clientTime);
                xhr.setRequestHeader("From", auth.from);
                return true;
            },
            multiselect: false,
            loadtext: '加载中...',
            loadui: 'block',
            rowNum: 20,
            mtype: "post",
            datatype: "local",
            prmNames: {
                page: "pageNo",
                rows: "pageSize"
            },
            colNames: ["收录服务器IP", "任务ID", "收录视频ID", "视频ID", "素材名称", "栏目名称", "收录时间", "频道", "素材分类", "有无版权", "状态", "创建人", "创建时间", "操作"],
            colModel: ["serverIp", "taskId", "recordVideoId", "videoId", "videoName", "colName", "recordTime", "channelName", "category", "hasAuth", "videoStatus", "opUser", "createTime", "operator_channelSignalTable_list"],
            pager: "#pager"
        },

        CODE_SUC: "A00000",
        REPEAT_CODE_ARR: [  4 , 8 , 16, 32, 64 , 128 , 2],
        REPEAT_CODE_CH_ARR: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"],
        TASK_STATUS_TAB: {
            key1: "通知收录成功", key2: "通知收录失败",
            key100: "待收录", key101: "任务开始失败",
            key200: "任务开始执行", key201: "任务开始失败", key202: "任务开始上传", key203: "任务上传失败",
            key300: "视频合并中", key302: "视频合并失败",
            key401: "任务取消", key500: "入待审库",
            key501: "打点提交", key502: "打点失败",key600: "上传"
        },
        TASK_STATUS_ENUM_VALUE: {
            WAIT: 100, START_FAIL: 101, START_OVERTIME: 102, IN_RECORD: 200, RECORD_FAIL: 201, VIDEO_MERGE: 300, VIDEO_MERGE_OVERTIME: 302,
            TASK_CANCEL: 401, ENTER_LIBRARY: 500
        },
        CHANNEL_HASCAPTION_ARR: ["否", "是"],
        VIDEO_STATUS: {"100":"待审核打点", "200":"收录中", "201":"收录失败", "300":"已入素材库", "301":"入素材库失败", "400":"废弃"}
    });
});